import type { CardListData, CardListParams, CardParams } from "@/types/card";
import { request } from "@/utils/reuqest";

/**
 * 查看月卡信息列表
 * @param params 查询参数
 * @returns Promise
 */
export const getCardListAPI = (params: CardListParams) => {
  return request<CardListData>("/parking/card/list", "GET", params);
};

/**
 * 添加月卡
 * @param params 月卡管理参数
 * @returns Promise
 */
export const createCardAPI = (params: CardParams) => {
  return request("/parking/card", "POST", params);
};
